package com.example.jpademo.biz.controller;

import com.example.jpademo.biz.service.AllowanceService;
import com.example.jpademo.biz.vo.AllowanceSearchVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/allowance")
public class AllowanceController {

    @Autowired
    private AllowanceService allowanceService;

    @PostMapping("/findAll")
    public Object findAll(@RequestBody AllowanceSearchVO searchVO){

        return allowanceService.findAll(searchVO);
    }
}
